/**
 *
 * 用户管理模块
 *
 * @author leon
 * @createTime '2018/8/16'
 */


const Main = () => import( '@/views/main');

const UserList = () => import('@/views/user/list');
const UserDetail = () => import('@/views/user/detail');

export default [
    {
        path: '/user-manage',
        name: 'userManage',
        meta: { name: '用户管理', unfold: false},
        component: Main,
        children: [
            {
                path: 'list',
                name: 'userList',
                component: UserList,
                meta: {
                    requireAuth: true,
                    name: '用户列表'
                }
            },
            {
                path: 'detail',
                name: 'userDetail',
                component: UserDetail,
                meta: {
                    requireAuth: true,
                    name: '用户详情'
                }
            }
        ],
        redirect: {
            name: 'userList'
        }
    }
]
